package homework05;


import java.io.FileInputStream;

import java.io.InputStreamReader;
import java.lang.reflect.Method;
import java.util.Properties;

public class Test {
    public static void main(String[] args) throws Exception {
        Properties ppt = new Properties();
        ppt.load(new InputStreamReader(new FileInputStream("D:/ideawork/javase_day14-homework/Test/src/config.properties")));
        String className = ppt.getProperty("className");
        Class aClass = Class.forName(className+"");
        Object o = aClass.getConstructor().newInstance();
        Method run = aClass.getDeclaredMethod("run");
        run.invoke(o);


    }
}
